package com.hospital.centerone.service.Impl;


import com.hospital.centerone.dao.RegisteredTypeDao;
import com.hospital.centerone.entity.Registeredtype;
import com.hospital.centerone.service.RegisteredTypeService;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;
@Service
@Transactional
public class RegisteredTypeServiceImpl implements RegisteredTypeService {
    @Resource
    private RegisteredTypeDao registeredTypeDao;
    @Override
    public List<Registeredtype> registeredTypeList(Registeredtype registeredType) {
        return registeredTypeDao.registeredTypeList(registeredType);
    }

    @Override
    public int deleteType(Integer registeredtype_id) {
        return registeredTypeDao.deleteType(registeredtype_id);
    }

    @Override
    public int editRegisteredType(Registeredtype registeredType) {
        return registeredTypeDao.editRegisteredType(registeredType);
    }

    @Override
    public int addRegisteredType(Registeredtype registeredType) {
        return registeredTypeDao.addRegisteredType(registeredType);
    }

    @Override
    public int count(Registeredtype registeredType) {
        return registeredTypeDao.count(registeredType);
    }
}
